﻿<%@ Page Title="" Language="C#" MasterPageFile="~/QCTT/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="QuanLyNoiDung.aspx.cs" Inherits="NS_QuangCaoTiepThi.QCTT.Admin.QuanLyNoiDung" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <asp:TabContainer ID="TabContainer1" runat="server"  ActiveTabIndex="0"
            AutoPostBack="true" onactivetabchanged="TabContainer1_ActiveTabChanged">
            <asp:TabPanel ID="tabQuanLyLoaiNoiDung" runat="server" HeaderText="Quản lý loại nội dung">
                <ContentTemplate>
                    <asp:Label ID="lblMaLoaiNoiDung" runat="server" Text="Mã loại nội dung"></asp:Label>
                    <asp:TextBox ID="txtMaLoaiNoiDung" runat="server"></asp:TextBox>
                    <br />
                    <asp:Label ID="lblTenLoaiNoiDung" runat="server" Text="Tên loại nội dung"></asp:Label>
                    <asp:TextBox ID="txtTenLoaiNoiDung" runat="server"></asp:TextBox>
                    <br />
                    <asp:Button ID="btnThemLoaiNoiDung" runat="server" Text="Thêm" Width="100px" 
                        onclick="btnThemLoaiNoiDung_Click" />
                    <br />
                    <asp:GridView ID="gvDanhSachLoaiNoiDung" runat="server" 
                        AutoGenerateColumns="False" 
                        onpageindexchanging="gvDanhSachLoaiNoiDung_PageIndexChanging" 
                        onrowcancelingedit="gvDanhSachLoaiNoiDung_RowCancelingEdit" 
                        onrowdeleting="gvDanhSachLoaiNoiDung_RowDeleting" 
                        onrowediting="gvDanhSachLoaiNoiDung_RowEditing" 
                        onrowupdating="gvDanhSachLoaiNoiDung_RowUpdating">
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <div>
                                        <asp:Label ID="lblMaLoaiNoiDung" runat="server" Text="Mã loại nội dung"></asp:Label>
                                        <asp:TextBox ID="txtMaLoaiNoiDung" runat="server" Text='<%# Eval("MaLoaiNoiDung") %>'></asp:TextBox>
                                        <br />
                                        <asp:Label ID="lblTenLoaiNoiDung" runat="server" Text="Tên loại nội dung"></asp:Label>
                                        <asp:TextBox ID="txtTenLoaiNoiDung" runat="server" Text='<%# Eval("TenLoaiNoiDung") %>'></asp:TextBox>
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:CommandField ShowEditButton="True" />
                            <asp:CommandField ShowDeleteButton="True" />
                        </Columns>
                    </asp:GridView>
                </ContentTemplate>
            </asp:TabPanel>
        </asp:TabContainer>
    </div>
</asp:Content>
